<?php get_header(); ?>

<div class="container">
    <div id="slideshow">
        <?php 
            echo do_shortcode("[metaslider id=19]"); 
        ?>
    </div>
</div>

<?php $options = get_option('nominal'); ?>

<div class="wrapper-container">
    <div class="container content">
        <div style="width: 100%;">
            <h2 class="title_h1_st1"><a href="#">Phim mới UP</a></h2>
            <?php if (have_posts()) : while (have_posts()) : the_post(); ?>
            <div class="film">
                <a class="link-film" href="<?php the_permalink() ?>" title="<?php the_title(); ?>" rel="bookmark" >
                    <?php if ( has_post_thumbnail() ) { ?>
                        <?php the_post_thumbnail(array(204, 204));  ?>
                    <?php }else{ ?>
                        <img src="" />
                    <?php } ?>
                    <p class="des1"><?php title_limit(5); ?></p>
                    <p class="des2"><?php echo excerpt(5).'...';?></p>
                </a>
            </div>
            <?php endwhile; else: ?>
                <div class="post excerpt">
            		<div class="no-results">
            			<p><strong><?php _e('There has been an error.', 'mythemeshop'); ?></strong></p>
            			<p><?php _e('We apologize for any inconvenience, please hit back on your browser or use the search form below.', 'mythemeshop'); ?></p>
            			<?php get_search_form(); ?>
            		</div><!--noResults-->
            	</div>
        	<?php endif; ?>
            
            <?php if ($options['mts_pagenavigation'] == '1') { ?>
        		<?php pagination($additional_loop->max_num_pages);?>
        	<?php } else { ?>
        		<div class="pnavigation2">
        			<div class="nav-previous"><?php next_posts_link( __( '&larr; '.'Older posts', 'mythemeshop' ) ); ?></div>
        			<div class="nav-next"><?php previous_posts_link( __( 'Newer posts'.' &rarr;', 'mythemeshop' ) ); ?></div>
        		</div>
        	<?php } ?>
        </div>
    </div>
    <div id="sidebar">
        <?php get_sidebar(); ?>
    </div>
</div>

<?php /*
<div id="page">
	<div class="content">
		<article class="article">
			<div id="content_box">
				<div id="content_widget"><?php if ( ! dynamic_sidebar( 'Header' ) ) : ?><?php endif ?></div>
				<div id="content_bg">
					<?php if (have_posts()) : while (have_posts()) : the_post(); ?>
						<div class="post excerpt <?php echo (++$j % 2 == 0) ? 'last' : ''; ?>">
							<header>
								<h2 class="title">
									<a href="<?php the_permalink() ?>" title="<?php the_title(); ?>" rel="bookmark"><?php the_title(); ?></a>
								</h2>
								<?php if($options['mts_headline_meta'] == '1') { ?>
									<div class="tablePost">
                                        <?php _e('Tác giả: ','mythemeshop'); the_author_posts_link(); ?> | <span class="metadate">
                                            <div class="post_date">
                                                <div class="day"><?php echo get_the_time('d'); ?></div>
                                                <div class="month"><?php echo get_the_time('M'); ?></div>
                                                <div class="year"><?php echo get_the_time('Y'); ?></div>
                                            </div>
                                            </span> 
                                            <span class="thecategories"><?php _e('Chuyên mục: ', 'mythemeshop'); the_category(', ') ?></span>
                                            <span class="thecomment">
                                                <a href="<?php comments_link(); ?>"><?php comments_number(' Không có bình luận',' 1 Bình luận',' % Comments'); ?></a>
                                            </span>
                                    </div>
								<?php } ?>
								<a href="<?php the_permalink() ?>" title="<?php the_title(); ?>" rel="nofollow" id="featured-thumbnail">
									<?php if ( has_post_thumbnail() ) { ?> 
										<?php echo '<div class="featured-thumbnail">'; the_post_thumbnail('featured',array('title' => '')); echo '</div>'; ?>
									<?php } ?>
								</a>
							</header><!--.header-->
							<div class="post-content image-caption-format-1">
								<?php echo excerpt(50).'...';?>
							</div>
							<div class="readMore"><a href="<?php the_permalink() ?>" title="<?php the_title(); ?>" rel="bookmark"><?php _e('Xem thêm','mythemeshop'); ?></a></div>
						</div><!--.post excerpt-->
					<?php endwhile; else: ?>
						<div class="post excerpt">
							<div class="no-results">
								<p><strong><?php _e('There has been an error.', 'mythemeshop'); ?></strong></p>
								<p><?php _e('We apologize for any inconvenience, please hit back on your browser or use the search form below.', 'mythemeshop'); ?></p>
								<?php get_search_form(); ?>
							</div><!--noResults-->
						</div>
					<?php endif; ?>
					<?php if ($options['mts_pagenavigation'] == '1') { ?>
						<?php pagination($additional_loop->max_num_pages);?>
					<?php } else { ?>
						<div class="pnavigation2">
							<div class="nav-previous"><?php next_posts_link( __( '&larr; '.'Older posts', 'mythemeshop' ) ); ?></div>
							<div class="nav-next"><?php previous_posts_link( __( 'Newer posts'.' &rarr;', 'mythemeshop' ) ); ?></div>
						</div>
					<?php } ?>
				</div>				
			</div>
		</article>
 */?>
		
<?php get_footer(); ?>